<template>
	<view class="">
		<view class="">
			<view class="">
				充值金额：
			</view>
			<view class="">
				{{detail.money}}
			</view>
		</view>
		<view class="">
			赠送金额：
		</view>
		<!-- {{detail.money}} -->
		{{detail.give}}
		11
		<button @click="chongzhi">充值</button>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				detail:{
					
				}
			}
		},
		onLoad(e) {
					this.detail = JSON.parse(decodeURIComponent(e.jinge));
					console.log(this.detail)
		},
		methods:{
			chongzhi(){
				let that = this
				let allmoney=that.detail.money+that.detail.give
				console.log(allmoney,'allmoney');
				let a={
					plan_id:0,
					user_money:allmoney
				}
				that._get(
					`balance.plan/submit?plan_id=${a.plan_id}&user_money=${a.user_money}`,{} ,
					function(res) {
						
					}, err => {
				
					}
				);
			}
		}
	}
</script>

<style>
</style>